﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>个人资料</title>
    <link href="../../CSS/bootstrap3.2/css/bootstrap.css" rel="stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="../../Scripts/geo.js"></script>
    <script type="text/javascript" src="../../Scripts/avalon.js"></script>
    <script type="text/javascript" src="../../Scripts/B2CCommon.js"></script>

    <style>
        .ms-controller, [ms-controller] {
            display: none;
        }
    </style>
    <script>
        var model = avalon.define({
            $id: "UserInfo",
            userdata: { "UserName": "", "Email": "", "Telephone": "", "TrueName": "", "NickName": "", "Sex": "", "Birthday": "", "Province": "", "City": "", "County": "", "Weixin": "", "QQ": "", "AlipayName": "", "AlipayNo": "" },
            updateTX: function () {
                // MyDialog.viewform('HTML/UploadTX.html', "修改头像", 800, 550);
            },
            checkXB: function (dom) {
                model.userdata.Sex = $(dom).val();
            },
            savedata: function () {

            },

        });
        $(function () {
            var userid = ComFunJS.getQueryString("id");
            if (userid) {
                $.getJSON("../Comon/ComAjaxHandler.ashx", { Action: "GetJsonData", Table: "PT_User_Account", QueryCondition: " AND ID=" + userid }, function (data) {
                    if (data) {
                        model.userdata = data[0];
                    }
                    else {
                    }
                });

            }

        })
        function promptinfo() {
            //  onerror = "javascript:this.src='/images/renwu.gif'"
        }
    </script>
</head>
<body>
    <div id="PersonalInformation" ms-controller="UserInfo" class="container-fluid">

        <table class="table table-bordered table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th class="text-center" colspan="4">个人资料</th>
                </tr>
            </thead>
            <tr>
                <td>昵称:</td>
                <td>{{userdata.NickName}}</td>
                <td>真实姓名:</td>
                <td>{{userdata.TrueName}}</td>
            </tr>
            <tr>
                <td>性别:</td>
                <td>{{userdata.Sex}}</td>
                <td>生日:</td>
                <td>{{userdata.Birthday}}</td>
            </tr>
            <tr>
                <td>地址:</td>
                <td>{{userdata.Province+userdata.City+userdata.County+userdata.Address}}</td>
                <td>手机:</td>
                <td>{{userdata.Telephone}}</td>
            </tr>
            <tr>
                <td>邮箱:</td>
                <td>{{userdata.Email}}</td>
                <td>QQ:</td>
                <td>{{userdata.QQ}}</td>
            </tr>
            <tr>
                <td>微信:</td>
                <td colspan="3">{{userdata.Weixin}}</td>

            </tr>
            <tr>
                <td>支付宝姓名:</td>
                <td>{{userdata.AlipayName}}</td>
                <td>支付宝账号:</td>
                <td>{{userdata.AlipayNo}}</td>
            </tr>
        </table>

        <table class="table table-bordered table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th  colspan="4">个人积分：{{userdata.Points}}</th>
                </tr>
            </thead>
        </table>

          <table class="table table-bordered table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th  colspan="4">个人余额：{{userdata.Balance}}</th>
                </tr>
            </thead>
        </table>
    </div>
    <!-- PersonalInformation结束 -->
</body>
</html>
